package upm.pb4agent.team5.util;

import jade.core.AID;

public class RowerWrapper implements Comparable<RowerWrapper> {
	private static final int COMPARE_CONST = 1000000;
	
	private AID rowerAID;
	private float ki;
	
	public RowerWrapper(AID rowerAID, float ki) {
		this.rowerAID = rowerAID;
		this.ki = ki;
	}

	public AID getRowerAID() {
		return rowerAID;
	}

	public void setRowerAID(AID rowerAID) {
		this.rowerAID = rowerAID;
	}

	public float getKi() {
		return ki;
	}

	public void setKi(float ki) {
		this.ki = ki;
	}

	@Override
	public int compareTo(RowerWrapper o) {
		return (int) ((o.getKi() - this.getKi()) * COMPARE_CONST);
	}
	
	@Override
	public String toString() {
		return "ki=" + getKi() + ":" + getRowerAID().toString();
	}
}